package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 月报模板
 */
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "tc_children_month_template")
@Data
public class ChildrenMonthTemplate extends Domain implements Serializable {

    //模板内容，用来存放一段 JSON，用以描述字段名称。
    //[{"name":"教学目标"，"type":"text"}, {"name":"教学内容", "type":"richtext"}, {"name":"扩展资源", "type":"attachments"}]
    @Column(columnDefinition = "text    COMMENT  '模板' ")
    private String template;

    @Column(columnDefinition = "int default 1 COMMENT '模板类型'")
    private Integer type = 0;

    @Column(columnDefinition = "varchar(32)   COMMENT '模板标题' ")
    private String title;

    @Column(columnDefinition = "varchar(32) default '0'  COMMENT '模板所属园区' ")
    private String areaId;

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;

    @Column(columnDefinition = " varchar(255)  COMMENT '备注'")
    private String remark;
}